package utils;

import java.io.Serializable;

/**
 * A sit is at some moment, occupied, reserved or free
 * */
public class Sit implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5453448400919020374L;

	// n digits number x_y, x is the row and y is the column
	private String number;

	private boolean ocupied;
	
	private boolean reserved;
	
	private String occupiedBy;//same for occupied or reserved

	public Sit(String number) {
		this.number = number;
	}

	public String getNumber() {
		return number;
	}
	
	public String getOccupiedBy() {
		return occupiedBy;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
	public void setOccupiedBy(String clientID) {
		this.occupiedBy = clientID;
	}

	public boolean isOccupied() {
		return ocupied;
	}

	public void setOcupied(boolean oc) {
		ocupied = oc;
	}
	
	public boolean isReserved() {
		return reserved;
	}

	public void setReserved(boolean res) {
		reserved = res;
	}
}
